﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Linq;

namespace LiteBlog.Components.Helpers
{
    class XmlHelper
    {
        internal static void Save(XDocument root, string path)
        {
            XmlWriterSettings settings = new XmlWriterSettings();
            settings.Indent = true;
            XmlWriter writer = XmlWriter.Create(path, settings);
            root.Save(writer);
            writer.Close();
        }
    }
}
